﻿using System;
using System.IO;

namespace HyperplaneTech.CdrPlugin {

    /// <summary>
    /// 应用工具类
    /// </summary>
    internal class AppUtil {

        private static readonly string APP_NAME = "ObjectSizeExtractor";

        /// <summary>
        /// 获取应用设置文件路径
        /// </summary>
        /// <returns>应用设置文件路径</returns>
        public static string GetAppSettingFilePath() {
            string documentDir = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\" + APP_NAME;
            if (!Directory.Exists(documentDir)) {
                Directory.CreateDirectory(documentDir);
            }
            return documentDir + "\\path.txt";
        }
    
    }

}
